@import '~antd/es/style/variable.less';

.headerControl {
  margin-bottom: 16px;
  .headerItemControl {
    display: flex;
    flex-direction: row;
    > span:first-child {
      position: relative;
      flex: 0 0 auto;
      width: 60px;
    }
    > input:last-child {
      flex: 1 1 auto;
    }
  }
}
.sizeControl {
  margin-bottom: 16px;
  :global {
    .ant-radio-group-small .ant-radio-button-wrapper {
      padding-right: 5px;
      padding-left: 5px;
    }
  }
}
.indexRenderControl {
  margin-bottom: 16px;
}
.columnControl {
  margin-bottom: 16px;
  .columnControlList {
    .columnControlListTitle {
      display: flex;
      flex-direction: row;
      align-items: center;
      height: 24px;
      margin-bottom: 2px;
      padding-left: 20px;
      color: @text-color-secondary;
      font-weight: 500;
      font-size: 13px;
      > span:not(:last-child) {
        flex: 1;
      }
      > span:last-child {
        width: 48px;
        text-align: center;
      }
    }
  }
}

.rowListContainer {
  .rowListItem {
  }
}

.columnControlItem {
  position: relative;
  display: flex;
  flex-direction: row;
  height: 24px;
  padding-left: 20px;
  overflow: hidden;
  > span:first-child {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 20px;
    color: @text-color-secondary;
    font-size: 16px;
    cursor: move;
    user-select: none;
  }
  .columnControlItemInput {
    flex: 1;
    margin: 1px 0;
    overflow: hidden;
    :global {
      input {
        padding: 0 4px 0 0;
      }
    }
  }
  .columnControlItemActions {
    width: 48px;
    line-height: 24px;
    text-align: center;
    > span {
      display: inline-block;
      width: 24px;
      font-size: 14px;
      line-height: 24px;
      text-align: center;
      vertical-align: middle;
      cursor: pointer;
    }
    > span:first-child {
      color: @blue-6;
      &:hover {
        color: @blue-5;
      }
    }
    > span:last-child {
      color: @red-6;
      &:hover {
        color: @red-5;
      }
    }
  }
}

.columnControlCheckList {
  display: flex;
  flex-direction: column;
  .columnControlCheckItem {
    display: flex;
    flex-direction: column;
    .columnControlCheckItemAttribute {
      display: flex;
      flex-direction: row;
      margin-bottom: 20px;
      padding-left: 24px;
      .columnControlCheckItemAttributeTitle {
        flex: 0 0 auto;
        width: 60px;
        line-height: 34px;
      }
      .columnControlCheckItemAttributeDict {
      }
      .columnControlCheckItemAttributeOptions {
        display: flex;
        flex-direction: column;
        .columnControlCheckItemAttributeOptionsTitle {
          display: flex;
          flex-direction: row;
          align-items: center;
          color: @text-color-secondary;
          & > span {
            flex: 1;
          }
        }
        .columnControlCheckItemAttributeOptionsList {
          display: flex;
          flex-direction: row;
          align-items: center;
          margin-bottom: 6px;
          & > input {
            flex: 1;
            padding: 0 4px 0 0;
            background-color: @background-color-base;
            &:not(:first-child) {
              margin-left: 6px;
            }
          }
        }
      }
      :global {
        .ant-tabs {
          .ant-tabs-nav-list {
            .ant-tabs-tab {
              padding: 6px 0;
            }
          }
        }
        .ant-tabs-top > .ant-tabs-nav {
          margin: 0 0 6px 0;
        }
      }
    }
  }
}
